<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>管理系统</title>
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/pintuer.css">
    <style type="text/css">
    .self{
        width: 50%;
    }
    </style>
    <script src="__PUBLIC__/Admin/js/jquery.js"></script>
    <script src="__PUBLIC__/Admin/js/pintuer.js"></script>
    <script src="__PUBLIC__/Admin/js/respond.js"></script>
    <script src="__PUBLIC__/Admin/js/admin.js"></script>
    <script charset="utf-8" src="__PUBLIC__/Admin/editor/kindeditor.js"></script>
    <script charset="utf-8" src="__PUBLIC__/Admin/editor/lang/zh_CN.js"></script>
<script>
        KindEditor.ready(function(K) {
                window.editor = K.create('#editor_id');
        });
</script>
</head>
<body style="margin-right:30px;">
    <div class="tab">
      <div class="tab-head">
        <strong><a href="<?php echo U('Content/contentList',array('d'=>1));?>"><<返回</a></strong>
        <ul class="tab-nav">
          <li class="active"><a href="#tab-set">发布文章</a></li>
        </ul>
      </div>
      <div class="tab-body">
        <br />
        <div class="tab-panel active" id="tab-set">
        	<form method="post" class="form-x" action="<?php echo U('Content/addContentHandle');?>">
                <div class="form-group">
                    <div class="label"><label for="title">文章类别</label></div>
                    <div class="field">
                     <select class="input self" name="type">
                      <option value= "0">请选择</option>>
                      <option value ="1">1.<?php echo ($t["t1"]); ?></option>
                      <option value ="2">2.<?php echo ($t["t2"]); ?></option>
                      <option value ="3">3.<?php echo ($t["t3"]); ?></option>
                      <option value ="4">4.<?php echo ($t["t4"]); ?></option>
                      <option value ="5">5.<?php echo ($t["t5"]); ?></option>
                      <option value ="6">6.<?php echo ($t["t6"]); ?></option>
                    </select>
                       <!--  <input type="text" class="input self" id="type" name="type" size="20" placeholder="请输入对应的类别编号(1-6)" data-validate="required:不能为空。" /> -->
                    </div>
                </div>
                <div class="form-group">
                    <div class="label"><label for="title">文章标题</label></div>
                    <div class="field">
                    	<input type="text" class="input self" id="title" name="title" size="20" placeholder="请输入文章标题" data-validate="required:文章标题不能为空。" />
                    </div>
                </div>

                <div class="form-group">
                    <div class="label"><label for="title">标题颜色</label></div>
                    <div class="field">
                        <input type="text" class="input self" id="titlecolor" value="#000000" name="titlecolor" size="20" placeholder="请输入文章标题颜色" data-validate="required:文章标题颜色不能为空。" />
                    </div>
                </div>

                <div class="form-group">
                    <div class="label"><label for="username">发布者</label></div>
                    <div class="field">
                        <input type="text" class="input self" id="username" name="username" size="20" placeholder="请填写发布者" data-validate="required:请填写发布者。" />
                    </div>
                </div>

                <div class="form-group">
                    <div class="label"><label for="title">发布时间</label></div>
                    <div class="field">
                        <input type="text" class="input self" id="time" name="time" size="20" value = '<?=date("Y/m/d",time())?>' placeholder="请输入时间" data-validate="required:发表时间不能为空。" />
                    </div>
                </div>

                <div class="form-group">
                    <div class="label"><label for="title">文章内容</label></div>
                    <div class="field">
                       <textarea id="editor_id" name="content" style="width:700px;height:300px;">
                        &lt;strong&gt;HTML内容&lt;/strong&gt;
                        </textarea>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label"><label for="title">排序</label></div>
                    <div class="field">
                        <input type="text" class="input self" id="sort" name="sort" size="20" value='0' placeholder="请输入次序编号" data-validate="required:排序不能为空，填写0即可。" />
                    </div>
                </div>
                <div class="form-button"><button class="button bg-main" type="submit">提交</button></div>
            </form>
        </div>
      </div>
    </div>
</body>
</html>